<?php
namespace common\logic;

use Yii;
use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;

/**
 * @author qingyu8@staff.weibo.com
 * @date 2018/02/04
 */
class OrderStatus {
    const UNSET = 0;//未设置
    const UNPAID = 1;//待支付
    const PAID = 2;//已支付
    const CONFIRMED = 3;//已确认
    const ING = 4;//进行中
    const COMPLETE = 5;//已完成
    const REFUNDING = 6;//退款中
    const CLOSED = 7;//已关闭
    const TEXT = [
        self::UNSET => '未设置',
        self::UNPAID => '待支付',
        self::PAID => '已支付',
        self::CONFIRMED => '已确认',
        self::ING => '进行中',
        self::COMPLETE => '已完成',
        self::REFUNDING => '退款中',
        self::CLOSED => '已关闭',
    ];
}
